package com.lee.pullrefresh;

import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

public class DynamicView{

	LayoutInflater inflater;


	public void addInit(ViewGroup v){
		LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.wangluo, null).findViewById(R.id.wangluo);
		 TextView lv=(TextView)layout.getChildAt(0);
		 lv.setTextColor(Color.RED);
		 v.removeAllViews();
		 v.addView(layout);
	}

}
